.class public Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/a;
.super Ljava/lang/Object;
.source "IntroOutroFileManager.java"


# static fields
.field private static b:Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/a;


# instance fields
.field private a:Les/cd$e;


# direct methods
.method public constructor <init>()V
    .locals 0

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method private b(Ljava/lang/String;)Ljava/lang/String;
    .locals 2

    .line 1
    invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_0

    :try_start_0
    const-string v0, "/"

    .line 2
    invoke-virtual {p1, v0}, Ljava/lang/String;->lastIndexOf(Ljava/lang/String;)I

    move-result v0

    add-int/lit8 v0, v0, 0x1

    const-string v1, "."

    .line 3
    invoke-virtual {p1, v1}, Ljava/lang/String;->lastIndexOf(Ljava/lang/String;)I

    move-result v1

    .line 4
    invoke-virtual {p1, v0, v1}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object p1
    :try_end_0
    .catch Ljava/lang/IndexOutOfBoundsException; {:try_start_0 .. :try_end_0} :catch_0

    return-object p1

    :catch_0
    move-exception p1

    .line 5
    sget-boolean v0, Les/u6;->a:Z

    if-eqz v0, :cond_0

    .line 6
    invoke-virtual {p1}, Ljava/lang/IndexOutOfBoundsException;->printStackTrace()V

    :cond_0
    const/4 p1, 0x0

    return-object p1
.end method

.method public static c()Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/a;
    .locals 2

    .line 1
    sget-object v0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/a;->b:Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/a;

    if-nez v0, :cond_1

    .line 2
    const-class v0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/a;

    monitor-enter v0

    .line 3
    :try_start_0
    sget-object v1, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/a;->b:Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/a;

    if-nez v1, :cond_0

    .line 4
    new-instance v1, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/a;

    invoke-direct {v1}, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/a;-><init>()V

    sput-object v1, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/a;->b:Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/a;

    .line 5
    :cond_0
    monitor-exit v0

    goto :goto_0

    :catchall_0
    move-exception v1

    monitor-exit v0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw v1

    .line 6
    :cond_1
    :goto_0
    sget-object v0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/a;->b:Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/a;

    return-object v0
.end method


# virtual methods
.method public a(Ljava/lang/String;)Ljava/util/Map;
    .locals 0
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/String;",
            ")",
            "Ljava/util/Map<",
            "Ljava/lang/String;",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation

    .line 1
    invoke-static {p1}, Les/qc$d;->a(Ljava/lang/String;)Ljava/util/List;

    move-result-object p1

    invoke-virtual {p0, p1}, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/a;->a(Ljava/util/List;)Ljava/util/Map;

    move-result-object p1

    return-object p1
.end method

.method public a(Ljava/util/List;)Ljava/util/Map;
    .locals 6
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Ljava/lang/String;",
            ">;)",
            "Ljava/util/Map<",
            "Ljava/lang/String;",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation

    .line 2
    new-instance v0, Ljava/util/HashMap;

    invoke-direct {v0}, Ljava/util/HashMap;-><init>()V

    .line 3
    invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object p1

    :cond_0
    invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-eqz v1, :cond_3

    invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/lang/String;

    .line 4
    invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v2

    if-nez v2, :cond_0

    .line 5
    new-instance v2, Ljava/io/File;

    invoke-direct {v2, v1}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 6
    invoke-virtual {v2}, Ljava/io/File;->listFiles()[Ljava/io/File;

    move-result-object v1

    if-eqz v1, :cond_0

    .line 7
    array-length v2, v1

    const/4 v3, 0x0

    :goto_0
    if-ge v3, v2, :cond_0

    aget-object v4, v1, v3

    .line 8
    invoke-virtual {v4}, Ljava/io/File;->isDirectory()Z

    move-result v5

    if-eqz v5, :cond_1

    goto :goto_1

    .line 9
    :cond_1
    invoke-virtual {v4}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v4

    .line 10
    invoke-direct {p0, v4}, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/a;->b(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    if-eqz v5, :cond_2

    .line 11
    invoke-interface {v0, v5, v4}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    :cond_2
    :goto_1
    add-int/lit8 v3, v3, 0x1

    goto :goto_0

    :cond_3
    return-object v0
.end method

.method public a()V
    .locals 2

    const/4 v0, 0x0

    .line 13
    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/a;->a:Les/cd$e;

    .line 14
    invoke-static {}, Les/c5;->a()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Les/g7;->a(Landroid/content/Context;)Lcom/android/volley/i;

    move-result-object v0

    const-string v1, "IntroOutroFileManager"

    .line 15
    invoke-virtual {v0, v1}, Lcom/android/volley/i;->a(Ljava/lang/Object;)V

    return-void
.end method

.method public a(Les/cd$e;)V
    .locals 0

    .line 12
    iput-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/a;->a:Les/cd$e;

    return-void
.end method

.method public b()Les/cd$e;
    .locals 1

    .line 7
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/a;->a:Les/cd$e;

    return-object v0
.end method
